package com.mall;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@EnableTransactionManagement
@SpringBootApplication
public class MallApplication {
    public static void main(String[] args) {
        ConfigurableEnvironment env = SpringApplication.run(MallApplication.class, args).getEnvironment();

        log.info("""

                        ----------------------------------------------------------
                        \tApplication: '{}' is running Success!\s
                        \tLocal URL: \thttp://127.0.0.1:{}
                        \tDocument:\thttp://127.0.0.1:{}/doc.html
                        ----------------------------------------------------------""",
                env.getProperty("spring.application.name"),
                env.getProperty("server.port"),
                env.getProperty("server.port"));
    }
}

